-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev: ui_configure: Add completer for 'configure schema' command #1677
Dev: ui_configure: Add completer for 'configure schema' command #1677
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
bf0e695
to
63589a7
Compare
crmsh/ui_configure.py
Outdated
def schema_completer(): | ||
exclude_files = ['pacemaker-next.rng'] | ||
files = glob.glob(os.path.join('/usr/share/pacemaker/', 'pacemaker-*.rng')) | ||
files = [f for f in files if os.path.basename(f) not in exclude_files] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
files = [f for f in files if os.path.basename(f) not in exclude_files]
files.sort()
59fabde
to
4191083
Compare
To complete existing pacemaker-*.rng files under /usr/share/pacemaker directory
Added `enable_custom_sort_order` and `disable_custom_sort_order` functions to encapsulate the logic for modifying `rl_sort_completion_matches`.
4191083
to
6d1afa8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful, Thx!
To complete existing pacemaker-*.rng files under /usr/share/pacemaker directory